package com.wxcms.service.impl;

import com.wxcms.domain.Alert;
import com.wxcms.mapper.AlertDao;
import com.wxcms.service.AlertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AlertServiceImpl implements AlertService{

	@Autowired
	private AlertDao entityDao;

	public Alert getById(String id){
		return entityDao.getById(id);
	}
	
	public Alert getByAlert(String alert){
		return entityDao.getByAlert(alert);
	}

	public List<Alert> listForPage(Alert searchEntity){
		return entityDao.listForPage(searchEntity);
	}

	public void add(Alert entity){
		entityDao.add(entity);
	}

	public void update(Alert entity){
		entityDao.update(entity);
	}

	public void delete(Alert entity){
		entityDao.delete(entity);
	}

}